import request from '@/utils/request';

export  default{
	login: params => request({ url:  '/user/login', method: 'post',  params }),
	
	register: params => request({ url:  '/user/register', method: 'post',  params }),
	getwsslink: params => request({url: '/service/getLiveUrl', method: 'get', params}),
	
	getUser: params => request({ url:  '/user/getUsers', method: 'get',  params }),
	createUser: params => request({ url:  '/user/addUser', method: 'post',  params }),
	
	getUserConf: params => request({ url:  '/config/get/config', method: 'get',  params }),
	updateUserConf: data => request({ url:  '/config/update/config', method: 'post',  data }),
	
	upload: data => request({url: '/service/upload', headers:{'content-type': null}, expandConf:1, method: 'post', data}),
	
} 


  